@echo off

rem %1 is working copy resivion
rem %2 is name of file with revision

if not exist %2 goto update_file

set /p wc_rev_file= <%2
if not %1==%wc_rev_file% goto update_file

goto :EOF

:update_file
echo %1 > %2